package ird.demo.service;

import ird.demo.bo.AjaxResult;
import ird.demo.domain.Menu;
import ird.demo.domain.TranGrp;
import ird.demo.domain.TranGrpTran;
import ird.demo.domain.TranGrpTranPK;
import ird.demo.domain.Transaction;
import ird.demo.domain.User;
import ird.demo.domain.UsrGrp;
import ird.demo.domain.UsrGrpMenu;
import ird.demo.domain.UsrGrpMenuPK;
import ird.demo.domain.UsrGrpTran;
import ird.demo.domain.UsrGrpTranGrp;
import ird.demo.domain.UsrGrpTranGrpPK;
import ird.demo.domain.UsrGrpTranPK;

import java.util.List;
import java.util.Map;


public interface CommonService{
	public UsrGrpMenu findUsrGrpMenu(UsrGrpMenuPK pk);

	public Transaction findTransaction(String pk);

	public Menu findMenuById(String pk);
	
	public List<Menu> findAllMenu();
	
	public Menu findMenuByTranId(String tranId);
	
	public void updateMenu(Menu menu);

	public UsrGrpTran findUsrGrpTran(UsrGrpTranPK pk);

	public TranGrpTran findTranGrpTran(TranGrpTranPK pk);

	public User findUser(String pk);

	public UsrGrpTranGrp findUsrGrpTranGrp(UsrGrpTranGrpPK pk);

	public TranGrp findTranGrp(String pk);

	public UsrGrp findUsrGrp(String pk);

	public List<Menu> findMenuByGrp(String usrGrp);
	
	public List<Transaction> findTranInMenuByUsrGrp(String usrGrp);
	
	public List<Transaction> findTranInByMenuId(String menuId);
	
	public AjaxResult validateNullStr(String[][] fieldErrcodeArr, Map<String,String> paraMap);
}